package com.uzai.console.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.uzai.console.entity.GroupCreateTaskRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 建群任务记录(GroupCreateTaskRecord)表数据库访问层
 *
 * @author szl
 * @since 2024-04-23 16:23:17
 */
public interface GroupCreateTaskRecordMapper extends BaseMapper<GroupCreateTaskRecord> {

    int insert(GroupCreateTaskRecord groupCreateTaskRecord);

    int updateById(GroupCreateTaskRecord groupCreateTaskRecord);

    void deleteByTaskId(@Param("merId") Long merId, @Param("taskId") Long taskId);

    List<GroupCreateTaskRecord> selectListByTaskId(@Param("merId") Long merId, @Param("taskId") Long taskId);

    List<GroupCreateTaskRecord> selectListByTaskIdWithStatus0(@Param("merId") Long merId, @Param("taskId") Long taskId, @Param("deviceUniqueId") Long deviceUniqueId);

    List<Long> selectIdListByTaskId(@Param("merId") Long merId, @Param("taskId") Long taskId);
}

